@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './ruoyi.scss';
@import './front.scss';
body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:
    Helvetica Neue,
    Helvetica,
    PingFang SC,
    Hiragino Sans GB,
    Microsoft YaHei,
    Arial,
    sans-serif;
}
@font-face {
  font-family: AlibabaPuHuiTi-2-55-Regular;
  src: url(@/assets/font/AlibabaPuHuiTi-2-55-Regular.ttf) format('ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: Alibaba PuHuiTi 2;
  src: url(@/assets/font/AlibabaPuHuiTi-2-55-Regular.ttf) format('ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: Alibaba PuHuiTi 2;
  src: url(@/assets/font/AlibabaPuHuiTi-2-55-Regular.ttf) format('ttf');
  font-weight: normal;
  font-style: normal;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}
.app-main .vxe-table--render-default .vxe-table--border-line {
  border: none !important;
  border-bottom: 1px solid var(--vxe-ui-table-border-color) !important;
}
// vxe-from 边距问题
// 换行显示
.el-select-dropdown__item {
  height: auto !important;
}
.app-main {
  .vxe-grid {
    .vxe-form--item.is--padding > .vxe-form--item-content {
      padding: 0;
      padding-bottom: 20px;
    }
  }
  .vxe-form--wrapper > .vxe-form--group > .vxe-form--item-content {
    padding: 0 !important;
  }
  .el-form--inline .el-form-item {
    margin-right: 18px;
    margin-bottom: 10px;
  }
  .vxe-grid--table-container {
  }
  .vxe-toolbar {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
  }
  .vxe-grid--pager-wrapper {
    height: 50px;
    padding-top: 10px;
  }
  .vxe-form--group {
    .vxe-form--item-content {
      //padding: 0 !important;
    }
    .vxe-form--group-content {
      .vxe-form--item {
        //padding: 10px;
        &:first-child {
          .vxe-form--item-content {
            padding-left: 0 !important;
          }
        }

        .vxe-form--item-content {
          padding-left: 0 !important;
          padding-right: 22px !important;
        }
      }
    }
  }
}
.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans',
    'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.glob-modal-vxe {
  --vxe-ui-input-border-color: #eeeeee;
  --el-input-bg-color: #f6f6f6;
  //--vxe-ui-font-disabled-color: '';
  .vxe-modal--header {
    height: 68px;
  }
  .vxe-modal--header-title {
    font-family: Alibaba PuHuiTi 2;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    padding-left: 20px;
  }

  .vxe-modal--header-right {
    padding-right: 20px;
  }
  .vxe-modal--footer {
    height: 88px;
  }
}
// for padding 1-30px
@for $i from 1 through 30 {
  .p-#{$i}px {
    padding: #{$i}px;
  }
}
// for padding y 1-30px
@for $i from 1 through 30 {
  .p-y-#{$i}px {
    padding-top: #{$i}px;
    padding-bottom: #{$i}px;
  }
}
// for padding x 1-30px
@for $i from 1 through 30 {
  .p-x-#{$i}px {
    padding-left: #{$i}px;
    padding-right: #{$i}px;
  }
}
// for margin 1-30px
@for $i from 1 through 30 {
  .m-#{$i}px {
    margin: #{$i}px;
  }
}

// for margin y 1-30px
@for $i from 1 through 30 {
  .m-y-#{$i}px {
    margin-top: #{$i}px;
    margin-bottom: #{$i}px;
  }
}
// for margin x 1-30px
@for $i from 1 through 30 {
  .m-x-#{$i}px {
    margin-left: #{$i}px;
    margin-right: #{$i}px;
  }
}

// 禁用过渡效果，以解决可能的只读属性修改错误
.disable-transitions,
.disable-transitions * {
  transition: none !important;
  animation: none !important;
}

// 下面两个选择器有助于防止插槽相关的问题
[data-v-slots],
[data-v-slot] {
  transition: none !important;
}
